import http from '../utils/http'

export default class base {
  static get = http.get.bind(http);
  static post = http.post.bind(http);
  static postWithParams = http.postWithParams.bind(http);
  static sleep = (time, cb) => {
    return new Promise((resolve) => setTimeout(() => {
      cb && cb()
      resolve()
    }, time))
  }
}
